package tjava;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Vector;
import java.util.concurrent.ConcurrentHashMap;

public class MyTest {

    public static void main(String[] args) {

         //ArrayList   LinkedList  Vector CopyOnWriteArrayList


        Vector vector=new Vector();

         ArrayList<Integer> arrayList=new ArrayList<Integer>();

        arrayList.add(1);
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        arrayList.add(4);

        for (int i=arrayList.size()-1;i>=0;i--){
            if(arrayList.get(i)==1){
                arrayList.remove(i);
            }
        }

        System.out.println(arrayList);


        while (arrayList.iterator().hasNext()){
            arrayList.iterator().remove();
        }

        HashMap<Object, Object> objectObjectHashMap = new HashMap<Object, Object>();

        LinkedHashMap linkedHashMap=new LinkedHashMap();

        ConcurrentHashMap concurrentHashMap=new ConcurrentHashMap();

        synchronized ("14"){

        }

    }


    public synchronized void test01(){
        System.out.println("=======test01========");
    }


    public void test02(){
        synchronized ("44"){
            System.out.println("======test02========");
        }
    }


}
